<template>
  <commonpanel title="2025年国内网球赛事" title-bg="green" class="bg">
    <div class="contentbox">
      <div class="line2">
        <div class="leftbox">
          <div class="titleline">预办赛事</div>
          <div class="numline">
            <span class="num">{{ 13 }}</span>
            <span class="unit">个</span>
          </div>
        </div>
        <div class="rightbox">
          <div class="titleline">已办赛事</div>
          <div class="numline">
            <span class="num">{{ 3 }}</span>
            <span class="unit">个</span>
          </div>
        </div>
      </div>
    </div>
  </commonpanel>
</template>
<script lang="ts" setup>
import commonpanel from '@/components/common/panel.vue';
</script>
<style lang="scss" scoped>
.bg {
  background-size: 100% 100% !important;
  background-repeat: no-repeat;
}

.contentbox {
  height: 100%;
  display: flex;
  flex-direction: column;

  .line2 {
    flex: 1;
    position: relative;

    .leftbox {
      overflow: hidden;
      position: absolute;
      width: 60%;
      height: 100%;
      width: 144px;
      height: 110px;
      margin-left: 24px;
      margin-top: 18px;
      background-image: url('@/assets/img/img5.png');
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }

    .rightbox {
      height: 100%;
      position: absolute;
      right: 0;
      top: 20px;
      width: 60%;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      padding-bottom: 10px;
      background-image: url('@/assets/img/img5.png');
    }
  }

  .titleline {
    font-size: 14px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    color: #ffffff;
    line-height: 20px;
    text-align: center;
    margin-top: 12px;
  }

  .numline {
    text-align: center;
    margin-top: 10px;

    .num {
      font-size: 20px;
      font-family: D-DIN-Bold;
      color: #ffffff;
      line-height: 22px;
      text-shadow: 0px 0px 14px rgba(35, 136, 250, 0.67);
    }

    .unit {
      font-size: 10px;
      font-family: PingFangSC-Regular;
      font-weight: 400;
      color: #ffffff;
      line-height: 14px;
      margin-left: 6px;
      //opacity: 0.8;
    }
  }
}
</style>
